import request from '@/utils/request'

let ZoneproductApi = {
  /*商品列表*/
  productlist(data, errorback) {
    return request._post('/mall/plus.zone.product/index', data, errorback);
  },
  /*获取商品分类*/
  getCategory(data, errorback) {
    return request._post('/mall/plus.zone.category/index', data, errorback);
  },
  /*获取专区商品*/
  getEditProduct(data, errorback) {
    return request._get('/mall/plus.zone.product/edit', data, errorback);
  },
  editProduct(data, errorback) {
    return request._post('/mall/plus.zone.product/edit', data, errorback);
  },
  /*添加专区商品*/
  addProduct(data, errorback) {
    return request._post('/mall/plus.zone.product/add', data, errorback);
  },
  /*删除商品*/
  deleteProduct(data, errorback) {
    return request._post('/mall/plus.zone.product/delete', data, errorback);
  },
  /*添加分类*/
  addCategiry(data, errorback) {
    return request._post('/mall/plus.zone.category/add', data, errorback);
  },
  /*编辑分类*/
  editCategory(data, errorback) {
    return request._post('/mall/plus.zone.category/edit', data, errorback);
  },
  /*删除分类*/
  deleteCategory(data, errorback) {
    return request._post('/mall/plus.zone.category/delete', data, errorback);
  }
}
export default ZoneproductApi;
